package com.wx.mall.operate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author j
 * @since 2020-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("op_ad")
@ApiModel(value="Ad对象", description="")
public class Ad implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "广告名称")
    private String name;

    @ApiModelProperty(value = "广告位置")
    private String position;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间")
    private Date endTime;

    @ApiModelProperty(value = "状态:1上线0下架")
    private String status;

    @ApiModelProperty(value = "图片地址")
    private String image;

    @ApiModelProperty(value = "URL")
    private String url;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "点击次数")
    private Integer onclikNumber;

    @ApiModelProperty(value = "生成订单数量")
    private Integer orderNumber;

    @ApiModelProperty(value = "置顶")
    private String top;
}
